package Day08.RPCDemo02.src.cn.tedu.rpc;

import java.io.Serializable;

public class RPCReq implements Serializable {
    private Class clz;
    private String methodName;
    private Class[] paramTypes;
    private Object[] params;

    public RPCReq() {
    }

    public RPCReq(Class clz, String methodName, Class[] paramTypes, Object[] params) {
        this.clz = clz;
        this.methodName = methodName;
        this.paramTypes = paramTypes;
        this.params = params;
    }

    @Override
    public String toString() {
        return "RPCReq{" +
                "clz='" + clz + '\'' +
                ", methodName='" + methodName + '\'' +
                ", paramTypes=" + paramTypes +
                ", params=" + params +
                '}';
    }

    public Class getClz() {
        return clz;
    }

    public void setClz(Class clz) {
        this.clz = clz;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public Class[] getParamTypes() {
        return paramTypes;
    }

    public void setParamTypes(Class[] paramTypes) {
        this.paramTypes = paramTypes;
    }

    public Object[] getParams() {
        return params;
    }

    public void setParams(Object[] params) {
        this.params = params;
    }
}
